import request from './request.js'
//登录
export const wxlogin = (params) => {
	return request({
		url: "/api/login/wxlogin",
		method: "post",
		data: params,
	})
}

// 获取公众号openid
export const getwxOpenid = (params) => {
	return request({
		url: "/api/login/getwxOpenid",
		method: "post",
		data: params,
	})
}

// 登录验证
export const loginCheck = (params) => {
	return request({
		url: "/api/login/checkOpenid",
		method: "post",
		data: params,
	})
}
//卡片列表
export const cardList = (params) => {
	return request({
		url: "/api/myorder/cardList",
		method: "post",
		data: params,
	})
}
//订单列表
export const orderList = (params) => {
	return request({
		url: "/api/myorder/orderList",
		method: "post",
		data: params,
	})
}
//订单详情
export const orderSee = (params) => {
	return request({
		url: "/api/myorder/orderSee",
		method: "post",
		data: params,
	})
}
//兑换实体卡
export const exchange = (params) => {
	return request({
		url: "/api/myorder/exchange",
		method: "post",
		data: params,
	})
}
//获取门店
export const getMerchant = (params) => {
	return request({
		url: "/api/client/merchant/getMerchant",
		method: "post",
		data: params,
	})
}
//获取总平台添加卡包列表
export const kabawList = (params) => {
	return request({
		url: "/api/merchant/kabawList",
		method: "post",
		data: params,
	})
}
//洗车列表
export const washlogList = (params) => {
	return request({
		url: "/api/myorder/washlogList",
		method: "post",
		data: params,
	})
}
//今日推荐
export const todaySell = (params) => {
	return request({
		url: "/api/merchant/todaySell",
		method: "post",
		data: params,
	})
}
// 附近洗车点
export const nearby = (params) => {
	return request({
		url: "/api/merchant/nearby",
		method: "post",
		data: params,
	})
}
//店铺详情
export const merchantSee = (params) => {
	return request({
		url: "/api/merchant/merchantSee",
		method: "post",
		data: params,
	})
}
//更多商品
export const goodsList = (params) => {
	return request({
		url: "/api/merchant/goodsList",
		method: "post",
		data: params,
	})
}
//洗车类型
export const cardType = (params) => {
	return request({
		url: "/api/index/cardType",
		method: "post",
		data: params,
	})
}
export const vicinity = (params) => {
	return request({
		url: "/api/merchant/vicinity",
		method: "post",
		data: params,
	})
}
//查看评论
export const evaluateSee = (params) => {
	return request({
		url: "/api/myorder/evaluateSee",
		method: "post",
		data: params,
	})
}
//评论
export const evaluate = (params) => {
	return request({
		url: "/api/myorder/evaluate",
		method: "post",
		data: params,
	})
}
//商品详情
export const goodsDetails = (params) => {
	return request({
		url: "/api/merchant/goodsDetails",
		method: "post",
		data: params,
	})
}
//获取门店和平台可用卡券
export const usableCoupons = (params) => {
	return request({
		url: "/api/merchant/usableCoupons",
		method: "post",
		data: params,
	})
}
//所有门店
export const merchantList = (params) => {
	return request({
		url: "/api/merchant/merchantList",
		method: "post",
		data: params,
	})
}
export const tutorialList = (params) => {
	return request({
		url: "/api/index/tutorialList",
		method: "post",
		data: params,
	})
}
export const messageList = (params) => {
	return request({
		url: "/api/message/list",
		method: "post",
		data: params,
	})
}
export const details = (params) => {
	return request({
		url: "/api/message/details",
		method: "post",
		data: params,
	})
}
export const createOrder = (params) => {
	return request({
		url: "/api/Myorder/createOrder",
		method: "post",
		data: params,
	})
}
export const getCode = (params) => {
	return request({
		url: "/api/myorder/getCode",
		method: "post",
		data: params,
	})
}
//获取配置
export const getConfig = (params) => {
	return request({
		url: "/api/index/getConfig",
		method: "post",
		data: params,
	})
}
//消息列表
export const noticeList = (params) => {
	return request({
		url: "/api/index/questionList",
		method: "post",
		data: params,
	})
}
export const bannerList = (params) => {
	return request({
		url: "/api/index/bannerList",
		method: "post",
		data: params,
	})
}
export const questionSee = (params) => {
	return request({
		url: "/api/index/questionSee",
		method: "post",
		data: params,
	})
}

export const getAutomatic = (params) => {
	return request({
		url: "/api/merchant/getAutomatic",
		method: "post",
		data: params,
	})
}
export const useAutomatic = (params) => {
	return request({
		url: "/api/merchant/useAutomatic",
		method: "post",
		data: params,
	})
}

export const getWxPhone = (params) => {
	return request({
		url: "/api/user/getWxPhone",
		method: "post",
		data: params,
	})
}
export const getUnread = (params) => {
	return request({
		url: "/api/message/getUnread",
		method: "post",
		data: params,
	})
}